/* 
 * File:   config.h
 * Created on April 8, 2013, 10:14 AM
 *
 * Contains configuration and callibration settings for the Robot Car.
 */

#pragma once

/* Device configuration bits */
_CONFIG1(JTAGEN_OFF /* JTAG port disabled */
        & GCP_OFF /* Code protection disabled */
        & GWRP_OFF /* Writing to program is memory allowed */
        & BKBUG_ON /* Device resets into debug mode */
        & ICS_PGx1 /* Emulator EMUC1/EMUD1 pins are shared with PGC1/PGD1 */
        & FWDTEN_OFF /* Watchdog timer disabled */
        & WINDIS_OFF /* Windowed watchdog timer enabled */
        & FWPSA_PR128 /* Watchdog timer prescaler set to 1:128 */
        & WDTPS_PS32768 /* Watchdog timer postscaler set to 1:32,768 */
        )

_CONFIG2(IESO_OFF /* IESO mode (Two-Speed Startup) disabled */
        & SOSCSEL_SOSC /* Default Secondary Oscillator (SOSC) */
        & WUTSEL_LEG /* Legacy Wake-up Timer */
        & FNOSC_PRIPLL /* Primary Oscillator with PLL module (HSPLL, ECPLL) */
        & FCKSM_CSDCMD /* Clock switching and Fail-Safe Clock Monitor are disabled */
        & OSCIOFNC_OFF /* OSC2/CLKO/RC15 functions as CLKO (FOSC/2) */
        & IOL1WAY_OFF /* IOLOCK may be changed via unlocking seq */
        & I2C1SEL_PRI /* I2C1 pin location is default (SCL1/SDA1) */
        & POSCMOD_XT /* XT Oscillator mode */
        )